package com.zuoyy.modules.system.service;

import com.zuoyy.common.enums.StatusEnum;
import com.zuoyy.modules.common.BaseService;
import com.zuoyy.modules.system.domain.Post;
import com.zuoyy.modules.system.query.PostQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
 * @author 
 */
public interface PostService extends BaseService<Post> {

    Page<Post> getPageList(PostQuery query);
    List<Post> findByQuery(PostQuery query);
    List<Post> findByQuery(PostQuery query, Sort sort);

    Boolean updateStatus(StatusEnum statusEnum, List<String> idList);

}